#include "server.hpp"

using std::cout;
using std::endl;
int main()
{

    //Socket套接字代码测试
    
    //缓冲区测试代码
    // Buffer buffer;
    // std::string str = "hello!!";
    // for (int i = 0; i < 300; i++)
    // {
    //     std::string str = "hello!!" + std::to_string(i) + '\n';
    //     buffer.WriteStringAndPush(str);
    // }

    // while (buffer.ReadAbleSize() > 0)
    // {
    //     std::string line = buffer.GetLineAndPop();
    //     cout << line << endl;
    // }

    // std::string tmp;
    // tmp = buffer.ReadStringAndPop(buffer.ReadAbleSize());
    // cout << tmp << endl;

    // buffer.WriteStringAndPush(str);

    // Buffer buffer1;
    // buffer1.WriteBufferAndPush(buffer);

    // std::string tmp = buffer1.ReadStringAndPop(buffer1.ReadAbleSize());

    // cout << tmp << endl;
    // cout << buffer.ReadAbleSize() << endl;
    // cout << buffer1.ReadAbleSize() << endl;

    return 0;
}